<?php


use Biz\model\brand\Content as mBrandContent;
use Biz\pockets\constInterface\SourceRightsInterface;
use Biz\service\brand\SearchSchedule;
use Biz\service\BrandRights\BrandEquityVerificationService;

ini_set('display_errors', 1);
require_once '/data/wwwroot/g_vendor/autoload.php';



//es搜索条件构造
$esCondition = [
    'brand_id' => 2513,
    'page' => 1,
    'page_size' => 20,
    'is_owner' => false,
    'sort' => 'addtime',
    'filter_audit_status' => [
        mBrandContent::AUDIT_STATUS_REJECT,
    ],
    'claim_content_status' => mBrandContent::CLAIM_CONTENT_DONE,
    'filter_owner_uid' => [11941, 6587838, 2151551],
];
$esCondition['is_top'] = 0;

//es搜索内容列表
$info = SearchSchedule::search(new \Biz\module\Classes\adm\ContentSearch($esCondition));
if (!empty($info['list'])) $info['list'] = implode(",", array_column($info['list'], 'id'));
var_dump($info);
$debug = \Doraemon\model\Elasticsearch\brandContent\BrandContentEs::search($esCondition['brand_id'], $esCondition);
if (!empty($debug['list'])) $debug['list'] = implode(",", array_column($debug['list'], 'id'));
var_dump($debug);